package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import lombok.Data;

/**
 * 硬件主表
 *
 * @author nianhua.jiang
 */
@Data
@TableName(value = "stock_device_info")
@ApiModel(value = "com-shycloud-mido-member-api-entity-StockDeviceInfo")
public class StockDeviceInfo {

	@TableId(value = "udid", type = IdType.INPUT)
	@ApiModelProperty(value = "")
	private String udid;
	/** 订单编号 */
	@TableField(value = "order_no")
	@ApiModelProperty(value = "订单编号")
	private Long orderNo;
	/** 设备蓝牙码 */
	@TableField(value = "bluetooth_code")
	@ApiModelProperty(value = "设备蓝牙码")
	private String bluetoothCode;
	/** 运营商ID */
	@TableField(value = "opt_id")
	@ApiModelProperty(value = "运营商ID")
	private Integer optId;
	/** 机构ID */
	@TableField(value = "org_id")
	@ApiModelProperty(value = "机构ID")
	private Integer orgId;
	/** 机构ID */
	@TableField(value = "dist_id")
	@ApiModelProperty(value = "经销商ID")
	private Integer distId;
	/** 类型 1-租赁 2-永久 */
	@TableField(value = "`type`")
	@ApiModelProperty(value = "类型 1-租赁 2-永久")
	private String type;
	/** 商品ID */
	@TableField(value = "goods_id")
	@ApiModelProperty(value = "商品ID")
	private Integer goodsId;
	/** 发货状态 0-未发货 1-发货 2-作废 */
	@TableField(value = "`status`")
	@ApiModelProperty(value = "发货状态 0-未发货 1-发货 2-作废")
	private String status;
	/** 创建时间 */
	@TableField(value = "create_time")
	@ApiModelProperty(value = "")
	private LocalDateTime createTime;
	/** (1未激活2空闲中3体验中4租赁中5已销售) */
	@TableField(value = "active_status")
	@ApiModelProperty(value = "(1未激活2空闲中3体验中4租赁中5已销售)")
	private String activeStatus;
	/** 首次激活时间 */
	@TableField(value = "active_create_time")
	@ApiModelProperty(value = "首次激活时间")
	private LocalDateTime activeCreateTime;
	/** 激活更新时间 */
	@TableField(value = "active_update_time")
	@ApiModelProperty(value = "激活更新时间")
	private LocalDateTime activeUpdateTime;

	public static final String COL_UDID = "udid";

	public static final String COL_ORDER_NO = "order_no";

	public static final String COL_BLUETOOTH_CODE = "bluetooth_code";

	public static final String COL_OPT_ID = "opt_id";

	public static final String COL_ORG_ID = "org_id";

	public static final String COL_TYPE = "type";

	public static final String COL_GOODS_ID = "goods_id";

	public static final String COL_STATUS = "status";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_ACTIVE_STATUS = "active_status";

	public static final String COL_ACTIVE_CREATE_TIME = "active_create_time";

	public static final String COL_ACTIVE_UPDATE_TIME = "active_update_time";
}